package com.neusoft.mapper;


import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.neusoft.po.DeliveryMan;

@Mapper
public interface DeliveryManMapper {

	@Select("select * from deliveryman where deliveryManId=#{deliveryManId} and password=#{password}")
	public DeliveryMan getDeliveryManByIdByPass(DeliveryMan deliveryMan);

	@Insert("insert into deliveryman(deliveryManId,name,password) values(#{deliveryManId},#{name},#{password})")
	public int saveDeliveryMan(DeliveryMan deliveryMan);

	@Select("select * from deliveryman where deliveryManId=#{deliveryManId}")
	public DeliveryMan getDeliveryManById(String deliveryManId);

}
